package cheme.ProcessEditor.Policies;

import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.gef.Request;

public class ResizeLabelRequest extends Request
{
	Dimension preferredSize;
	
	public ResizeLabelRequest(Dimension preferredSize)
	{
		this.preferredSize = preferredSize;
	}
	
	public ResizeLabelRequest(Point preferredSize)
	{
		this.preferredSize = new Dimension(preferredSize.x, preferredSize.y);
	}
	
	public ResizeLabelRequest(int width, int height)
	{
		this.preferredSize = new Dimension(width, height);
	}

	/**
	 * @return the preferredSize
	 */
	public Dimension getPreferredSize()
	{
		return preferredSize;
	}

	/**
	 * @param preferredSize the preferredSize to set
	 */
	public void setPreferredSize(Dimension preferredSize)
	{
		this.preferredSize = preferredSize;
	}
}
